package com.sjq.common.service;

import java.util.Map;

import com.sjq.common.entity.LoginAccount;
import com.sjq.common.entity.User;
import com.sjq.common.exception.ServiceException;
import com.sjq.common.util.PageResults;

public interface UserService {
	//新增用户
	public void addUser(User user);
	//删除用户
	public void removeUser(String userId);
	//修改用户
	public void modifyUser(User user);
	//查询用户详细
	public Map<String, Object> findUserById(String userId)throws ServiceException;
	// 分页查询
	public PageResults<?> findUserByPage(int pageNo, int pageSize, User user) throws ServiceException;
	//根据用户名修改用户密码
	public void modifyByUserpsd(String xyhmm,String userId);
	//根据用户名修改用户名权限
	public void modifyByUserRole(String yhm,String roleid);
	
	public LoginAccount getLoginAccountBySfhm(String sfhm);
	
}
